Comment #8 on issue 135 by vangarderen.peter: configuration based on collection type
http://code.google.com/p/qubit-toolkit/issues/detail?id=135

sometime pre 1.0.8 the hidden field for collection type was removed from the standard
templates. Right now, all information objects are being assigned the default
QubitTerm::ARCHIVAL_MATERIAL_ID value in the parent informationobject/actions/edit,
see public function updateCollectionType()

We need to be able to set the collection type hidden value to
QubitTerm::PUBLISHED_MATERIAL_ID when the DC edit template is used and pass it to
updateCollectionTyipe()

However, adding this...

$this->form->setWidget('collection_type_id', new
sfWidgetFormInputHidden(array('default' => QubitTerm::PUBLISHED_MATERIAL_ID)));

...to the public function execute($request) for the sfDcPlugin edit action is
resulting in an Propel integrity error:

500 | Internal Server Error | PropelException
Unable to execute INSERT statement. [wrapped: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`qubit`.`q_information_object`, CONSTRAINT `q_information_object_FK_3` FOREIGN KEY
(`collection_type_id`) REFERENCES `q_term` (`id`))]

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Qubit 
Toolkit Issues" 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-issues?hl=en.

Reply via email to