http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10921

            Bug ID: 10921
           Summary: You can edit an order even when it is in a closed
                    basket
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Acquisitions
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

You can edit an order even when it is in a closed basket.

I think it should be only allowed to some librarians.
In fact, there is a piece of code supposed to make a control, but it is broken
:
In neworderempty.tt, I think the [% IF ( close ) %] condition is always false,
or is not true when it need to be, because in neworderempty.pl, "close"
parameter is not passed to the template if you try to look at an order in a
closed basket (by tweaking the url of an open order for ex)

in perl file : 

my $close           = $input->param('close');
[...]
if ($close) {
    $budget_id      =  $data->{'budget_id'};
    $budget_name    =   $budget->{'budget_name'};

}
[...]
# fill template
$template->param(
    close        => $close,
    budget_id    => $budget_id,
    budget_name  => $budget_name
) if ($close);


M. Saby

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to