Projekt

Allgemein

Profil

GX-Bug #51956 » InputNumberMinMaxFix.patch

Till Tepelmann, 03.06.2017 11:58

Unterschiede anzeigen:

src/admin/includes/functions/general.php (revision )
1 1
<?php
2 2
/* --------------------------------------------------------------
3
  general.php 2016-12-16
3
  general.php 2017-06-03
4 4
  Gambio GmbH
5 5
  http://www.gambio.de
6
  Copyright (c) 2016 Gambio GmbH
6
  Copyright (c) 2017 Gambio GmbH
7 7
  Released under the GNU General Public License (Version 2)
8 8
  [http://www.gnu.org/licenses/gpl-2.0.html]
9 9

  
......
33 33
  Copyright (c) Strider | Strider@oscworks.com
34 34
  Copyright (c  Nick Stanko of UkiDev.com, nick@ukidev.com
35 35
  Copyright (c) Andre ambidex@gmx.net
36
  Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org
36
  Copyright (c) 2017,2002 Ian C Wilson http://www.phesis.org
37 37

  
38 38
  Released under the GNU General Public License
39 39
  -------------------------------------------------------------- */
......
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 that are required an must have min and max.
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_min_max_input($min, $max, $name)
2596
{
2597
	return '<input type="number" min="'.$min.'" max="'.$max.'" 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
{
......
2807 2820
	$t_pull_down_html .= '</select>';
2808 2821

  
2809 2822
	return $t_pull_down_html;
2810
}
2823
}
    (1-1/1)