Add UserId to js side layouts so we can check it

pull/3524/head
Isaac Connor 2022-07-12 17:32:32 -04:00
parent c6cc23d73c
commit fa2a02c27f
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ layouts[0] = {}; // reserved, should hold which fields to clear when transitioni
global $layouts;
foreach ( $layouts as $layout ) {
?>
layouts[<?php echo $layout->Id() ?>] = {"Name":"<?php echo $layout->Name()?>","Positions":<?php echo json_decode($layout->Positions())?$layout->Positions():'{}' ?>};
layouts[<?php echo $layout->Id() ?>] = {
"Name":"<?php echo $layout->Name()?>",
"UserId":"<?php echo $layout->UserId()?>",
"Positions":<?php echo json_decode($layout->Positions())?$layout->Positions():'{}' ?>};
<?php
} // end foreach layout
global $FreeFormLayoutId;