Author: david
Date: Fri Oct 14 15:49:00 2011
New Revision: 10113
Log:
No results template
Added:
trunk/apps/qubit/modules/informationobject/templates/storageLocationsError.php
- copied, changed from r10111,
trunk/apps/qubit/modules/informationobject/templates/fileListError.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/storageLocationsAction.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/storageLocationsAction.class.php
==============================================================================
---
trunk/apps/qubit/modules/informationobject/actions/storageLocationsAction.class.php
Fri Oct 14 15:48:33 2011 (r10112)
+++
trunk/apps/qubit/modules/informationobject/actions/storageLocationsAction.class.php
Fri Oct 14 15:49:00 2011 (r10113)
@@ -44,6 +44,11 @@
$this->physicalObjects = QubitPhysicalObject::get($criteria);
+ if (0 == count($this->physicalObjects))
+ {
+ return sfView::ERROR;
+ }
+
$c2 = clone $criteria;
$this->foundcount = BasePeer::doCount($c2)->fetchColumn(0);
}
Copied and modified:
trunk/apps/qubit/modules/informationobject/templates/storageLocationsError.php
(from r10111,
trunk/apps/qubit/modules/informationobject/templates/fileListError.php)
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/fileListError.php
Fri Oct 14 15:36:34 2011 (r10111, copy source)
+++
trunk/apps/qubit/modules/informationobject/templates/storageLocationsError.php
Fri Oct 14 15:49:00 2011 (r10113)
@@ -1,9 +1,9 @@
<div class="content">
- <h1><?php echo __('File list') ?></h1>
+ <h1><?php echo __('Physical storage locations') ?></h1>
<h1 class="label"><?php echo __('No results') ?></h1>
- <p><?php echo __('Oops, we couldn\'t find any file level descriptions.')
?></p>
+ <p><?php echo __('Oops, we couldn\'t find any physical storage locations
for the current resource') ?></p>
<p><?php echo link_to(__('Back'), array($resource, 'module' =>
'informationobject', 'action' => 'reports')); ?></p>
</div>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.