Lines 541-550
sub _UpdateCourseItem {
Link Here
|
541 |
if ( $course_item->is_enabled ) { |
541 |
if ( $course_item->is_enabled ) { |
542 |
my $item_fields = {}; |
542 |
my $item_fields = {}; |
543 |
|
543 |
|
544 |
for my $field ( qw( itype ccode location homebranch holdingbranch ) ) { |
544 |
for my $field ( @FIELDS ) { |
545 |
|
545 |
|
546 |
my $field_enabled = sprintf "%s_enabled", $field; |
546 |
my $field_enabled = $field . '_enabled'; |
547 |
my $field_storage = sprintf "%s_storage", $field; |
547 |
my $field_storage = $field . '_storage'; |
548 |
|
548 |
|
549 |
# Find newly enabled field and add item value to storage |
549 |
# Find newly enabled field and add item value to storage |
550 |
if ( $params{$field_enabled} && !$course_item->$field_enabled ) { |
550 |
if ( $params{$field_enabled} && !$course_item->$field_enabled ) { |
551 |
- |
|
|