Skip to content

Commit e65aaa4

Browse files
author
David Ala
committed
Bugfix: no fields on duplication #4
1 parent 7d5dc71 commit e65aaa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/option/fields/evasys.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ public static function instance_form_definition(
407407
*
408408
*/
409409
public static function set_data(&$data, booking_option_settings $settings) {
410+
// Normally, we don't call set data after the first time loading.
411+
if (isset($data->copyoptionid)) {
412+
return;
413+
}
410414
$evasys = new evasys_handler();
411415
$evasys->load_form($data, $settings);
412416
}

0 commit comments

Comments
 (0)