Convert Event edit test to WebGUI::Test::Mechanize, and fix issues with adding events to a calendar.
This commit is contained in:
parent
69dc8f576e
commit
27f3b3e935
2 changed files with 15 additions and 59 deletions
|
|
@ -445,8 +445,8 @@ around canEdit => sub {
|
|||
return 1 if (
|
||||
$self->canAddEvent( $userId )
|
||||
&& $form->process("assetId") eq "new"
|
||||
&& $form->process("func") eq "editSave"
|
||||
&& $form->process("class") eq "WebGUI::Asset::Event"
|
||||
&& $form->process("func") eq "addSave"
|
||||
&& $form->process("className") eq "WebGUI::Asset::Event"
|
||||
);
|
||||
|
||||
# Who can edit the Calendar can do everything
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue