update 2023-07-22 07:43:39
This commit is contained in:
parent
23415d4813
commit
47d0215d74
|
@ -167,11 +167,14 @@ final class Tagged
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the linker has access to delete this tag
|
// make sure the linker has access to delete this tag
|
||||||
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0
|
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0)
|
||||||
&& $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'))
|
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'success' => Text::_('COM_GETBIBLE_THE_TAG_WAS_SUCCESSFULLY_REMOVED_FROM_THE_VERSE')
|
'success' => Text::_('COM_GETBIBLE_THE_TAG_WAS_SUCCESSFULLY_REMOVED_FROM_THE_VERSE'),
|
||||||
|
'what' => $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'),
|
||||||
|
'id' => $id,
|
||||||
|
'guid' => $tag,
|
||||||
|
'linker' => $linker
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,11 +138,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the linker has access to delete this tag
|
// make sure the linker has access to delete this tag
|
||||||
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0
|
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0)
|
||||||
&& $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'))
|
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'success' => Text::_('The tag was successfully removed from the verse.')
|
'success' => Text::_('The tag was successfully removed from the verse.'),
|
||||||
|
'what' => $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'),
|
||||||
|
'id' => $id,
|
||||||
|
'guid' => $tag,
|
||||||
|
'linker' => $linker
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user