View | Details | Raw Unified | Return to bug 31694
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-3 / +3 lines)
Lines 452-459 Link Here
452
          var $this = $(this);
452
          var $this = $(this);
453
          var $parent_row = $this.closest('tr');
453
          var $parent_row = $this.closest('tr');
454
          var preset = $this.val();
454
          var preset = $this.val();
455
          if (preset) {
455
          var presetText = $this.children('option[value="' + preset + '"]').text();
456
            $.each(overlay_rules_presets[preset], function(operation, action) {
456
          if (presetText) {
457
            $.each(overlay_rules_presets[presetText], function(operation, action) {
457
              $('select[name="' + operation + '"]', $parent_row).val(action);
458
              $('select[name="' + operation + '"]', $parent_row).val(action);
458
            });
459
            });
459
          }
460
          }
460
- 

Return to bug 31694