Permalink
Browse files

Form labels out of sync. Closes #94 and Refs #38

  • Loading branch information...
1 parent 76cfbfc commit 5ff0855cfa5821a5f11486ceb05789012b8318d0 @matheo matheo committed Mar 30, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/modules/Clip/templates/plugins/function.clip_form_label.php
@@ -38,10 +38,11 @@ function smarty_function_clip_form_label($params, Zikula_Form_View &$render)
// clip data handling
$alias = isset($params['alias']) && $params['alias'] ? $params['alias'] : $render->get_registered_object('clip_form')->getAlias();
$tid = isset($params['tid']) && $params['tid'] ? $params['tid'] : (int)$render->get_registered_object('clip_form')->getTid();
- $pid = isset($params['pid']) && $params['pid'] ? $params['pid'] : $render->get_registered_object('clip_form')->getId();
+ $rid = isset($params['rid']) && $params['rid'] ? $params['rid'] : $render->get_registered_object('clip_form')->getId();
+ $pid = isset($params['pid']) && $params['pid'] ? $params['pid'] : $render->get_registered_object('clip_form')->getPid($render);
- // form framework parameters adjustment
- $params['for'] = "clip_{$alias}_{$tid}_{$pid}_{$params['for']}";
+ // form framework parameter adjustment
+ $params['for'] = "clip_{$alias}_{$tid}_{$rid}_{$pid}_{$params['for']}";
return $render->registerPlugin('Zikula_Form_Plugin_Label', $params);
}

0 comments on commit 5ff0855

Please sign in to comment.