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 {
|
||||
$newServer = array();
|
||||
$newServer['Name'] = translate('NewServer');
|
||||
$newServer['Hostname'] = '';
|
||||
}
|
||||
|
||||
$focusWindow = true;
|
||||
|
@ -61,8 +62,9 @@ xhtmlHeaders(__FILE__, translate('Server')." - ".$newServer['Name'] );
|
|||
</tbody>
|
||||
</table>
|
||||
<div id="contentButtons">
|
||||
<input type="submit" name="action" value="<?php echo translate('Save') ?>"/>
|
||||
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow()"/>
|
||||
<input type="hidden" name="action" value="Save"/>
|
||||
<input type="submit" value="<?php echo translate('Save') ?>"/>
|
||||
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow();"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue