Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/GaletteObjectsLend/Entity/Preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function store(array $data): bool
)->where->equalTo(self::PK, ':' . self::PK);
$stmt = $this->zdb->sql->prepareStatementForSqlObject($update);

unset($data['csrf_value'], $data['csrf_name'], $data['GENERATED_CONTRIB_INFO_TEXT']);
unset($data['GENERATED_CONTRIB_INFO_TEXT']);
foreach ($data as $key => $value) {
$stmt->execute(
[
Expand Down
1 change: 0 additions & 1 deletion templates/default/categories_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
</div>
</div>
</div>
{% include "components/forms/csrf.html.twig" %}
</form>
{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion templates/default/category_edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
<i class="save icon"></i> {{ _T("Save") }}
</button>
<input type="hidden" name="category_id" id="id" value="{{ category.getId() }}"/>
{% include "components/forms/csrf.html.twig" %}
</div>
</form>
{% endblock %}
2 changes: 0 additions & 2 deletions templates/default/objects_edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@
{% endif %}
<input type="hidden" name="object_id" value="{{ object.getId() }}">
</div>
{% include "components/forms/csrf.html.twig" %}
</form>

{% if object.getId() %}
Expand Down Expand Up @@ -224,7 +223,6 @@
</button>
</div>
<input type="hidden" name="object_id" value="{{ object.object_id }}">
{% include "components/forms/csrf.html.twig" %}
</form>
</div>
{% endif %}
Expand Down
1 change: 0 additions & 1 deletion templates/default/objects_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@
</div>
</div>
</div>
{% include "components/forms/csrf.html.twig" %}
</form>

{% if lendsprefs.VIEW_CATEGORY and categories|length > 0 %}
Expand Down
1 change: 0 additions & 1 deletion templates/default/preferences.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,5 @@
<i class="save icon"></i> {{ _T("Save") }}
</button>
</div>
{% include "components/forms/csrf.html.twig" %}
</form>
{% endblock %}
1 change: 0 additions & 1 deletion templates/default/status_edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
<i class="save icon"></i> {{ _T("Save") }}
</button>
<input type="hidden" name="id" id="id" value="{{ status.status_id }}"/>
{% include "components/forms/csrf.html.twig" %}
</div>
</form>
{% endblock %}
1 change: 0 additions & 1 deletion templates/default/status_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
</div>
</div>
</div>
{% include "components/forms/csrf.html.twig" %}
</form>
{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion templates/default/take_object.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@
<i class="save icon"></i> {% if takeorgive == 'take' %}{{ _T("Borrow object", "objectslend") }}{% else %}{{ _T("Return object", "objectslend") }}{% endif %}
</button>
<input type="hidden" name="mode" value="{% if ajax %}ajax{% endif %}"/>
{% include "components/forms/csrf.html.twig" %}
</div>
</form>
{% endblock %}
Expand Down