symphony-3 icon indicating copy to clipboard operation
symphony-3 copied to clipboard

Data Source Editor - Cannot deselect output parameter

Open allen opened this issue 14 years ago • 0 comments

via Stephen Bau:

I tried to add a data source output parameter, but this resulted in a Symphony Recoverable Error on the front end:

Argument 1 passed to fieldLink::getParameterOutputValue() must be an array, null given, called in /Users/stephen/Sites/sym3/piano-sonata/extensions/ds_sections/lib/class.datasource.php on line 887 and defined An error occurred in /Users/stephen/Sites/sym3/piano-sonata/extensions/field_link/fields/field.link.php around line 695

  • 690
  • 691     return $result;
  • 692
  • 693 }
  • 694
  • 695 public function getParameterOutputValue(array $data, Entry $entry=NULL){
  • 696     $result = array();
  • 697     if(!empty($data)){
  • 698         foreach($data as $d){
  • 699             $result[] = $d->relation_id;

Backtrace

  • /Users/stephen/Sites/sym3/piano-sonata/extensions/field_link/fields/field.link.php:695
GenericErrorHandler::handler();
  • /Users/stephen/Sites/sym3/piano-sonata/extensions/ds_sections/lib/class.datasource.php:887
fieldLink->getParameterOutputValue();
  • /Users/stephen/Sites/sym3/piano-sonata/symphony/lib/class.view.php:579
SectionsDataSource->render();
  • /Users/stephen/Sites/sym3/piano-sonata/extensions/devkit_debug/views/debug.php:108
View->render();
  • /Users/stephen/Sites/sym3/piano-sonata/symphony/lib/class.frontend.php:334
DevKit_Debug->render();
  • /Users/stephen/Sites/sym3/piano-sonata/index.php:37
Frontend->display();

The output parameter that caused the error was a Link field.

Then, I was unable to deselect the output option. I could select another output option instead and save the data source, but I could not deselect all parameter output options. That is when I deselected the option and pressed the Save Changes button, the option was still selected after saving.

allen avatar Jul 19 '10 11:07 allen