Change severity list in Mantis

Add the below line into config_inc.php to change the options in the severity list.
$g_severity_enum_string = ’10:feature,30:text,40:tweak,50:minor,60:major,70:crash,80:block’;

Or remove the severity field completely by adding the below array into config_inc.php.
$g_bug_report_page_fields = array(
‘additional_info’,
‘attachments’,
‘category_id’,
‘due_date’,
‘handler’,
‘os’,
‘os_version’,
‘platform’,
‘priority’,
‘product_build’,
‘product_version’,
‘reproducibility’,
// ‘severity’,
‘steps_to_reproduce’,
‘tags’,
‘target_version’,
‘view_state’,
);

Refer to the config_defaults_inc.php file for the details.

Reference:
https://mantisbt.org/forums/viewtopic.php?t=1193

Add HTTP2 Support to cURL

Install nghttp2
yum -y groupinstall “Development Tools”
yum -y install libev libev-devel zlib zlib-devel openssl openssl-devel git

cd /var/tmp
git clone https://github.com/tatsuhiro-t/nghttp2.git
cd nghttp2
autoreconf -i
automake
autoconf
./configure
make
make install

Set library search path
echo ‘/usr/local/lib’ > /etc/ld.so.conf.d/custom-libs.conf
ldconfig
ldconfig -p| grep libnghttp2

Install cURL
cd /var/tmp
git clone https://github.com/bagder/curl.git
cd curl
./buildconf
./configure –with-nghttp2=/usr/local
make
make install

Check cURL Feature
./src/curl -V

Check HTTP/2 response
./src/curl –http2 -v

Reference:
http://takeshiyako.blogspot.hk/2015/09/curl-http2.html
https://serversforhackers.com/video/curl-with-http2-support

Bootstrap Validator with Multiple Checkboxes

Workaround:

    // Checkbox validation
    $form.on('validate.bs.validator', function(e) {
        $(this).find('input[type=checkbox]').each(function() {
            validate_checkbox($(this).attr('name'));
        });
    });
    $('.form-group').on('click','input:checkbox',function(){
        validate_checkbox($(this).attr('name'));
    });
    function validate_checkbox(name) {
        if ($('input[name="' + name + '"]:checked').length < 1){
            $('input[name="' + name + '"]').prop('required', true);
        } else {
            $('input[name="' + name + '"]').prop('required', false);
        }
    }

Reference:
https://github.com/1000hz/bootstrap-validator/issues/201
(Comments from rikbamo on Aug 31 2016)