When armo/weap/misc drop down are selected, item display is properly updated, and item is properly saved, so far

This commit is contained in:
Hash Borgir
2023-05-30 18:43:17 -06:00
parent 87a9ca1658
commit ec45a9c1b6
3 changed files with 16 additions and 22 deletions

View File

@@ -190,11 +190,13 @@ if ($cmd == 'delete') {
if ($cmd == "save") {
$_GET['code'] = array_filter($_GET['code']);
$_GET['code'] = $_GET['code'][0];
unset($_GET['formtype']);
unset($_GET['submit']);
unset($_GET['item']);
unset($_GET['cmd']);
// if ladder or carry1 is 0, set empty field.
$_GET['ladder'] = $_GET['ladder'] ?? '';
$_GET['carry1'] = $_GET['carry1'] ?? '';