Author: david
Date: Wed Oct 7 16:47:30 2009
New Revision: 3686
Log:
Move misplaced conditional parenthesis.
Modified:
trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
Modified: trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Wed Oct
7 15:34:24 2009 (r3685)
+++ trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Wed Oct
7 16:47:30 2009 (r3686)
@@ -77,19 +77,19 @@
{
$this->form->setDefault('displayAsCompound',
$compoundProperty->getValue(array('sourceCulture' => true)));
}
+ }
- // If reference represenation doesn't exist, include upload widget
- foreach ($this->representations as $usageId => $representation)
+ // If reference represenation doesn't exist, include upload widget
+ foreach ($this->representations as $usageId => $representation)
+ {
+ if (null === $representation)
{
- if (null === $representation)
- {
- $this->form->setValidator('repFile_'.$usageId, new sfValidatorFile);
- $this->form->setWidget('repFile_'.$usageId, new
sfWidgetFormInputFile);
+ $this->form->setValidator('repFile_'.$usageId, new sfValidatorFile);
+ $this->form->setWidget('repFile_'.$usageId, new sfWidgetFormInputFile);
- // Add 'auto-generate' checkbox
- $this->form->setValidator('generateDerivative_'.$usageId, new
sfValidatorPass);
- $this->form->setWidget('generateDerivative_'.$usageId, new
sfWidgetFormInputCheckbox(array(), array('value' => 1)));
- }
+ // Add 'auto-generate' checkbox
+ $this->form->setValidator('generateDerivative_'.$usageId, new
sfValidatorPass);
+ $this->form->setWidget('generateDerivative_'.$usageId, new
sfWidgetFormInputCheckbox(array(), array('value' => 1)));
}
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---