We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7083d9a commit f5b14a9Copy full SHA for f5b14a9
front/targetchange.form.php
@@ -12,17 +12,14 @@
12
13
// Edit an existing target change
14
if (isset($_POST["update"])) {
15
- Session::checkRight("entity", UPDATE);
16
-
17
$target = new PluginFormcreatorTarget();
18
$found = $target->find('items_id = ' . (int) $_POST['id']);
19
$found = array_shift($found);
20
- $target->update(['id' => $found['id'], 'name' => $name]);
+ $target->update(['id' => $found['id'], 'name' => $_POST['name']]);
21
$targetticket->update($_POST);
22
Html::back();
23
24
} else if (isset($_POST['actor_role'])) {
25
26
$id = (int) $_POST['id'];
27
$actor_value = isset($_POST['actor_value_' . $_POST['actor_type']])
28
? $_POST['actor_value_' . $_POST['actor_type']]
0 commit comments