21. Assignment.
A limited partner shall cease to be a limited partner of an investment limited partnership on the absolute assignment of all of his partnership interest or on the return of the whole of his contribution including the release of any undertaking to contribute to the partnership provided that, notwithstanding any term of the partnership agreement or of any other agreement to the contrary no such assignment shall relieve the assignor of any liability arising under section 6, 12 or 20.