Lines 715-721
if (C4::Context->userenv && C4::Context->userenv->{'branch'}) {
Link Here
|
715 |
$userbranch = C4::Context->userenv->{'branch'}; |
715 |
$userbranch = C4::Context->userenv->{'branch'}; |
716 |
} |
716 |
} |
717 |
|
717 |
|
718 |
if (defined ($data{'branchcode'}) and ( $op eq 'edit_form' || $op eq 'duplicate' || ( $op eq 'add_form' && $category->category_type eq 'C' ) )) { |
718 |
if (defined ($data{'branchcode'}) and ( $op eq 'edit_form' || $op eq 'duplicate' || $op eq 'add_form' )) { |
719 |
$userbranch = $data{'branchcode'}; |
719 |
$userbranch = $data{'branchcode'}; |
720 |
} |
720 |
} |
721 |
$template->param( userbranch => $userbranch ); |
721 |
$template->param( userbranch => $userbranch ); |
722 |
- |
|
|