Update delete module so it will work
This commit is contained in:
parent
d0e43db04b
commit
db076ef787
@ -17,7 +17,7 @@
|
|||||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
|
||||||
## @class
|
## @class
|
||||||
package ORB::Edit;
|
package ORB::Delete;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use parent qw(ORB::Common); # This class extends the ORB common class
|
use parent qw(ORB::Common); # This class extends the ORB common class
|
||||||
@ -44,8 +44,8 @@ sub _generate_delete {
|
|||||||
return $self -> _fatal_error("{L_PERMISSION_FAILED_SUMMARY}")
|
return $self -> _fatal_error("{L_PERMISSION_FAILED_SUMMARY}")
|
||||||
unless($self -> check_permission('recipe.edit', $recipe -> {"metadata_id"}));
|
unless($self -> check_permission('recipe.edit', $recipe -> {"metadata_id"}));
|
||||||
|
|
||||||
$args -> {"id"} = $self -> {"system"} -> {"recipe"} -> set_status($recipe -> {"id"},
|
my $id = $self -> {"system"} -> {"recipe"} -> set_status($recipe -> {"id"},
|
||||||
$self -> {"settings"} -> {"config"} -> {"Recipe:status:deleted"} // "Deleted"
|
$self -> {"settings"} -> {"config"} -> {"Recipe:status:deleted"} // "Deleted",
|
||||||
$self -> {"session"} -> get_session_userid())
|
$self -> {"session"} -> get_session_userid())
|
||||||
or $errors = $self -> {"template"} -> load_template("error/error_item.tem",
|
or $errors = $self -> {"template"} -> load_template("error/error_item.tem",
|
||||||
{ "%(error)s" => $self -> {"system"} -> {"recipe"} -> errstr() });
|
{ "%(error)s" => $self -> {"system"} -> {"recipe"} -> errstr() });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user