Set value for Hostname to avoid php warning. fix save button. Can't use it to pass action value because it gets translated.
This commit is contained in:
parent
d5cc602bfa
commit
fc85ccbf5f
|
@ -32,6 +32,7 @@ if ( $_REQUEST['id'] ) {
|
||||||
} else {
|
} else {
|
||||||
$newServer = array();
|
$newServer = array();
|
||||||
$newServer['Name'] = translate('NewServer');
|
$newServer['Name'] = translate('NewServer');
|
||||||
|
$newServer['Hostname'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$focusWindow = true;
|
$focusWindow = true;
|
||||||
|
@ -61,8 +62,9 @@ xhtmlHeaders(__FILE__, translate('Server')." - ".$newServer['Name'] );
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div id="contentButtons">
|
<div id="contentButtons">
|
||||||
<input type="submit" name="action" value="<?php echo translate('Save') ?>"/>
|
<input type="hidden" name="action" value="Save"/>
|
||||||
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow()"/>
|
<input type="submit" value="<?php echo translate('Save') ?>"/>
|
||||||
|
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow();"/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue