Skip to content

Commit

Permalink
Pass $args with & to persist changes
Browse files Browse the repository at this point in the history
This prevents changes to survey_id being lost when editing records for
a different survey.
  • Loading branch information
johnvanbreda committed Feb 15, 2017
1 parent 3996a99 commit 6ee3a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prebuilt_forms/dynamic_sample_occurrence.php
Expand Up @@ -806,7 +806,7 @@ protected static function getGrid($args, $nid, $auth) {
* will load the occurrences.
* When displaying just one occurrence we must load the sample and the occurrence
*/
protected static function getEntity($args, $auth) {
protected static function getEntity(&$args, $auth) {
data_entry_helper::$entity_to_load = array();
if ((call_user_func(array(self::$called_class, 'getGridMode'), $args))) {
// multi-record mode using a checklist grid. We really just need to know the sample ID.
Expand Down

0 comments on commit 6ee3a16

Please sign in to comment.