Index: /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py	(revision 15313)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py	(revision 15314)
@@ -682,4 +682,8 @@
 
         self.certificate.study_mode = 'pg_ft'
+        error, payment = utils.setPaymentDetails('bed_allocation',
+            self.student, None, None)
+        self.assertEqual(error, u'Select your favoured hostel first.')
+        self.student['accommodation'].desired_hostel = u'no'
         error, payment = utils.setPaymentDetails('bed_allocation',
             self.student, None, None)
Index: /main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py	(revision 15313)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py	(revision 15314)
@@ -238,5 +238,7 @@
             p_item = self.getAccommodationDetails(student)['bt']
             desired_hostel = student['accommodation'].desired_hostel
-            if desired_hostel:
+            if not desired_hostel:
+                return _(u'Select your favoured hostel first.'), None
+            if desired_hostel and desired_hostel != 'no':
                 p_item = u'%s (%s)' % (p_item, desired_hostel)
             amount = academic_session.booking_fee
