Ignore:
Timestamp:
11 Nov 2015, 21:31:22 (9 years ago)
Author:
Henrik Bettermann
Message:

enable relocation if bed and hostel are orphaned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r13396 r13439  
    21702170        if acc_details['bt'] == self.context.bed_type and \
    21712171                self.context.bed != None and \
    2172                 self.context.bed.bed_type == self.context.bed_type:
     2172                self.context.bed.bed_type == self.context.bed_type and \
     2173                self.context.bed.__parent__.__parent__ :
    21732174            self.flash(_("Student can't be relocated."), type="warning")
    21742175            self.redirect(self.url(self.context))
Note: See TracChangeset for help on using the changeset viewer.