diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-14 17:01:03 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-14 17:01:03 +0100 |
| commit | 68d6d45635a040a5004581afc5ae78db729175d7 (patch) | |
| tree | 4950ebcdd235962f848f02d8792ae52713b55bdc /edit_stgrp_item.php | |
| parent | 97db6f79021ad3f9f35cfa4db670bbd061ff4195 (diff) | |
| download | stock-68d6d45635a040a5004581afc5ae78db729175d7.tar.gz stock-68d6d45635a040a5004581afc5ae78db729175d7.tar.bz2 stock-68d6d45635a040a5004581afc5ae78db729175d7.zip | |
Fix CKEditor integration in edit_assembly and edit_stgrp_item
- edit_assembly.tpl: replace plain <textarea> with {textarea} plugin;
omit id (defaults to LIBERTY_TEXT_AREA for CKEditor); rows=10
- edit_stgrp_item.tpl: remove double form-group wrapper; pass label
directly to {textarea}; remove name='data' (use default 'edit')
- edit_stgrp_item.php: read $_POST['edit'] not $_POST['data']
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edit_stgrp_item.php')
| -rw-r--r-- | edit_stgrp_item.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edit_stgrp_item.php b/edit_stgrp_item.php index 27066cc..406d192 100644 --- a/edit_stgrp_item.php +++ b/edit_stgrp_item.php @@ -35,7 +35,7 @@ if( !$row ) { $errors = []; if( !empty( $_POST['fSave'] ) ) { - $data = trim( $_POST['data'] ?? '' ) ?: null; + $data = trim( $_POST['edit'] ?? '' ) ?: null; $gBitDb->query( "UPDATE `{$X}liberty_xref_item` SET `data` = ? WHERE `item` = ? AND `x_group` = 'stgrp' AND `content_type_guid` = 'stock'", |
