mirror of
https://github.com/unraid/webgui.git
synced 2025-12-30 22:20:23 -06:00
Fix: PHP Errors when editing share
This commit is contained in:
2
emhttp/plugins/dynamix/SecurityNFS.page
Normal file → Executable file
2
emhttp/plugins/dynamix/SecurityNFS.page
Normal file → Executable file
@@ -1,7 +1,7 @@
|
||||
Menu="Disk Share"
|
||||
Title="NFS Security Settings"
|
||||
Tag="linux"
|
||||
Cond="(($var['shareNFSEnabled']!='no') && (isset($name)?array_key_exists($name,$sec_nfs)&&$shares[$name]['hasCfg']!='similar':0))"
|
||||
Cond="(($var['shareNFSEnabled']!='no') && (isset($name)?array_key_exists($name,$sec_nfs)&&($shares[$name]['hasCfg']??false)!='similar':0))"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2023, Lime Technology
|
||||
|
||||
2
emhttp/plugins/dynamix/SecuritySMB.page
Normal file → Executable file
2
emhttp/plugins/dynamix/SecuritySMB.page
Normal file → Executable file
@@ -1,7 +1,7 @@
|
||||
Menu="Disk Share Flash"
|
||||
Title="SMB Security Settings"
|
||||
Tag="windows"
|
||||
Cond="(($var['shareSMBEnabled']!='no') && (isset($name)?array_key_exists($name,$sec)&&$shares[$name]['hasCfg']!='similar':0))"
|
||||
Cond="(($var['shareSMBEnabled']!='no') && (isset($name)?array_key_exists($name,$sec)&&($shares[$name]['hasCfg']??false)!='similar':0))"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2023, Lime Technology
|
||||
|
||||
6
emhttp/plugins/dynamix/ShareEdit.page
Normal file → Executable file
6
emhttp/plugins/dynamix/ShareEdit.page
Normal file → Executable file
@@ -336,7 +336,7 @@ $filteredShares = array_filter($shares, function($list) use ($name) {
|
||||
<?endif;?>
|
||||
|
||||
<div markdown="1" class="relative">
|
||||
<?if ($share['hasCfg']!='similar'):?>
|
||||
<?if (($share['hasCfg']??false)!='similar'):?>
|
||||
<?if (!empty($filteredShares)):?>
|
||||
<div markdown="1" class="clone-settings shade">
|
||||
_(Read settings from)_ <i class="fa fa-arrow-left fa-fw"></i>
|
||||
@@ -594,7 +594,7 @@ _(Mover action)_:
|
||||
: <span class="inline-flex flex-row items-center gap-2">
|
||||
<input type="submit" id="cmdEditShare" name="cmdEditShare" value="_(Apply)_" onclick="if (this.value=='_(Delete)_') this.value='Delete'; else this.value='Apply'; return handleDeleteClick(this)" disabled>
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
<?if ($share['hasCfg']=='similar'):?>
|
||||
<?if (($share['hasCfg']??false)=='similar'):?>
|
||||
<span class="orange-text"><i class="fa fa-warning"></i> _(Case-insensitive Share name is not unique)_</span>
|
||||
<?endif;?>
|
||||
</span>
|
||||
@@ -1440,7 +1440,7 @@ $(function() {
|
||||
updateScreen(form.shareUseCache.value);
|
||||
if ($.cookie('autosize-' + $('#shareName').val())) $('#autosize').show();
|
||||
checkName($('#shareName').val());
|
||||
<?if ($share['hasCfg']=='similar'):?>
|
||||
<?if (($share['hasCfg']??false)=='similar'):?>
|
||||
form.shareComment.disabled = true;
|
||||
form.shareFloor.disabled = true;
|
||||
form.shareCachePool.disabled = true;
|
||||
|
||||
Reference in New Issue
Block a user