Skip to content

Commit

Permalink
fix: fieldsuccessmessage calling non-existing rm() method
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 4, 2023
1 parent 37a45f7 commit fe26836
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Deployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,15 @@ public function exit($msg)

public function hello()
{
// https://patorjk.com/software/taag/#p=display&f=Standard&t=RockMigrations
$this->echo("
#########################################
RockMigrations Deployment by baumrock.com
#########################################
____ _ __ __ _ _ _
| _ \ ___ ___| | _| \/ (_) __ _ _ __ __ _| |_(_) ___ _ __ ___
| |_) / _ \ / __| |/ / |\/| | |/ _` | '__/ _` | __| |/ _ \| '_ \/ __|
| _ < (_) | (__| <| | | | | (_| | | | (_| | |_| | (_) | | | \__ \
|_| \_\___/ \___|_|\_\_| |_|_|\__, |_| \__,_|\__|_|\___/|_| |_|___/
|___/
by baumrock.com
");
$this->echo("Creating new release at {$this->paths->release}\n");
$this->echo("Root folder name: " . $this->rootFolderName());
Expand Down
2 changes: 1 addition & 1 deletion RockMigrations.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ public function fieldSuccess($field, $msg)
$field = $field->name;
}
if (!is_string($field)) throw new WireException("Must be string");
$messages = $this->rm()->fieldSuccessMessages->set($field, $msg);
$messages = $this->fieldSuccessMessages->set($field, $msg);
$this->wire->session->rmFieldSuccessMessages = $messages->getArray();
}

Expand Down

0 comments on commit fe26836

Please sign in to comment.