A mortgage on an undivided immovable retains its effect regardless of the outcome of the partition if it has been granted by all the undivided co-owners. Otherwise, it retains its effect only to the extent that the undivided co-owner who granted it is, at the time of the partition, allotted the undivided immovable or immovables or, where the immovable is auctioned to a third party, if that undivided co-owner is allotted the price of the auction.
A mortgage of a share in one or more undivided immovables retains its effect only to the extent that the undivided co-owner who granted it is, on partition, allotted the undivided immovable or immovables; it then retains it to the full extent of that allotment without being limited to the share that belonged to the undivided co-owner who granted it; where the immovable is auctioned to a third party, it also retains it if that undivided co-owner is allotted the price of the auction.