Projekt

Allgemein

Profil

GX-Bug #52195 » MaxMinNumberFix.patch

Till Tepelmann, 01.06.2017 19:42

Unterschiede anzeigen:

src/admin/includes/functions/general.php (revision )
2584 2584
	return '<input type="number" name="configuration_value" value="' . $name . '" />';
2585 2585
}
2586 2586

  
2587
/**
2588
 * Creates an input field of type number for configuration values which are not allowed to be empty
2589
 * IMPORTANT NOTE: name attribute gets replaced on admin/configuration.php:839
2590
 *
2591
 * @param string $name Value of name attribute.
2592
 *
2593
 * @return string Input element of type number.
2594
 */
2595
function cfg_number_required_input($name)
2596
{
2597
	return '<input type="number" min="0" name="configuration_value" value="' . $name . '" required/>';
2598
}
2599

  
2587 2600
// function for configuration values
2588 2601
function gm_cfg_get_orders_status($orders_id)
2589 2602
{
    (1-1/1)