Skip to content

Commit

Permalink
Send id as parameter to model.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemorken committed Nov 19, 2024
1 parent 56696b7 commit 9d5bf59
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/mysql/types/document/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
var hide_result = !is_logged_in || "<?php echo Parameters::get("hide_result_column");?>";
var model_options = { source: "remote",
data: serverdata ? serverdata.data : null,
id: data_id,
message: serverdata ? serverdata.message : null,
error_server: serverdata ? serverdata.error : null,
permission: serverdata ? serverdata.permission : null,
Expand Down
1 change: 1 addition & 0 deletions data/mysql/types/event/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
var is_me = serverdata.permission && parseInt(serverdata.permission.current_user_id) == parseInt(data_id);
var model_options = { source: "remote",
data: serverdata ? serverdata.data : null,
id: data_id,
message: serverdata ? serverdata.message : null,
error_server: serverdata ? serverdata.error : null,
permission: serverdata ? serverdata.permission : null,
Expand Down
1 change: 1 addition & 0 deletions data/mysql/types/group/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
var is_me = serverdata.permission && parseInt(serverdata.permission.current_user_id) == parseInt(data_id);
var model_options = { source: "remote",
data: serverdata ? serverdata.data : null,
id: data_id,
message: serverdata ? serverdata.message : null,
error_server: serverdata ? serverdata.error : null,
permission: serverdata ? serverdata.permission : null,
Expand Down
1 change: 1 addition & 0 deletions data/mysql/types/user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
var is_me = serverdata.permission && parseInt(serverdata.permission.current_user_id) == parseInt(data_id);
var model_options = { source: "remote",
data: serverdata ? serverdata.data : null,
id: data_id,
message: serverdata ? serverdata.message : null,
error_server: serverdata ? serverdata.error : null,
permission: serverdata ? serverdata.permission : null,
Expand Down

0 comments on commit 9d5bf59

Please sign in to comment.