Author: david
Date: Tue Oct 20 13:29:52 2009
New Revision: 3775
Log:
Set null value for RAD fields to avoid warnings on editRad page.
Modified:
trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Tue Oct 20 11:55:05 2009 (r3774)
+++ trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Tue Oct 20 13:29:52 2009 (r3775)
@@ -116,6 +116,7 @@
$criteria->add(QubitProperty::NAME, $name);
$criteria->add(QubitProperty::SCOPE, 'rad');
+ $this[$name] = null;
if (1 == count($query = QubitProperty::get($criteria)))
{
$this[$name] = $query[0];
@@ -185,7 +186,7 @@
case 'titleProperOfPublishersSeries':
case 'titleStatementOfResponsibility':
- if (!isset($this[$field->getName()]))
+ if (null === $this[$field->getName()])
{
$this[$field->getName()] = new QubitProperty;
$this[$field->getName()]->name = $field->getName();
--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---