Skip to content

Commit

Permalink
Trim context setting keys on creation (#16500)
Browse files Browse the repository at this point in the history
## What does it do?
3.x port of #16498
  • Loading branch information
Jako authored Mar 25, 2024
1 parent b33a605 commit 4f8a835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Revolution/Processors/Context/Setting/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function beforeSave()
{
$this->object->set('context_key', $this->context->key);

$key = $this->getProperty('key');
$key = trim($this->getProperty('key', ''));
$this->object->set('key', $key);

// Make sure the key's there and valid
Expand Down

0 comments on commit 4f8a835

Please sign in to comment.