Skip to content

Commit 8213ae2

Browse files
committed
Add missing id attribute
1 parent fb3fba6 commit 8213ae2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Mvc/Controller/KyteLibraryAssignmentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function hook_response_data($method, $o, &$r = null, &$d = null) {
1111
} else {
1212
if ($method == 'new') {
1313
$assignments = new \Kyte\Core\Model($this->model);
14-
$assignments->retrieve('library', $d['library'], false, [['field' => 'page', 'value' => $d['page']], ['field' => 'site', 'value' => $d['site']], ['field' => 'kyte_account', 'value' => $this->account]]);
14+
$assignments->retrieve('library', $d['library'], false, [['field' => 'page', 'value' => $d['page']], ['field' => 'site', 'value' => $d['site']], ['field' => 'kyte_account', 'value' => $this->account->id]]);
1515
if ($assignments->count > 0) {
1616
throw new \Exception("This library is already assigned to the specified page or site.");
1717
}

src/Mvc/Controller/KyteScriptAssignmentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function hook_response_data($method, $o, &$r = null, &$d = null) {
1111
} else {
1212
if ($method == 'new') {
1313
$assignments = new \Kyte\Core\Model($this->model);
14-
$assignments->retrieve('script', $d['library'], false, [['field' => 'page', 'value' => $d['page']], ['field' => 'site', 'value' => $d['site']], ['field' => 'kyte_account', 'value' => $this->account]]);
14+
$assignments->retrieve('script', $d['library'], false, [['field' => 'page', 'value' => $d['page']], ['field' => 'site', 'value' => $d['site']], ['field' => 'kyte_account', 'value' => $this->account->id]]);
1515
if ($assignments->count > 0) {
1616
throw new \Exception("This custom script is already assigned to the specified page or site.");
1717
}

0 commit comments

Comments
 (0)