OpenCATS 0.9.4-3

Free, Open-Source Applicant Tracking System including job-board. Entirely customisable!

Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules: Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
By Dimple_L
#3449
My imput cell phone no is 12345678910 (11 digits) but after i saved, it changed to 234-567-8910 (10 digits).
I want to remove this format, please help.
By ARecruiter
#3881
Hi there,

Would this be lines 43 and 44? I'm inputting UK numbers and they are converted to US format. Out numbers are 11 digits beginning with 0. As with the above poster, the numbers I input change to a xxx-xxx-xxxx format.
User avatar
By RussH
#3890
Hi,

without learning PCRE, I plugged different nos in and this doesn't reformat the phone number. I'm also in the UK. I'll need to revisit at some point and do it properly, but if you want an ugly hack, here's the section I changed;
Code: Select all
class StringUtility
{
    const matchPHSeparator    = '[\s\/.-]*';                            /* PCRE */
    const matchPHCountryCode  = '[(]?[+]?\d{0,3}[)]?';                  /* PCRE */
    const matchPHECountryCode = '[(]?[+]?(?P<countryCode>\d{0,3})[)]?'; /* PCRE */
    const matchPHAreaCode     = '[(]?[2-9]{1}\d{2}[)]?';                /* PCRE */
    const matchPHEAreaCode    = '[(]?(?P<areaCode>[2-9]{1}\d{2})[)]?';  /* PCRE */
    const matchPHExchange     = '\d{4}';                                /* PCRE */
    const matchPHEExchange    = '(?P<exchange>\d{4})';                  /* PCRE */
    const matchPHNumber       = '\d{4}';                                /* PCRE */
    const matchPHENumber      = '(?P<number>\d{4})';                    /* PCRE */

    const matchPHExtension  = '([(]?(?:e?xt?(?:ension|)|#|[*]|)[)]?[\s\/.-]*\d{1,6}[)]?)?';                /* PCRE */
    const matchPHEExtension = '([(]?(?:e?xt?(?:ension|)|#|[*]|)[)]?[\s\/.-]*(?P<extension>\d{1,6})[)]?)?'; /* PCRE */
..otherwise if you want it 'correctly formatted for UK' then you can check out the UK compatible PCRE which is listed here http://regexlib.com/UserPatterns.aspx?a ... eSupport=1

I've written a custom PHP code which is actually a[…]

It would be nice for CATSone to also allow the aut[…]

Hi there! I would like to implement a search box […]

OpenCATS restore

Yes I think so. I assume you made a backup of al y[…]

Is this a fresh install of 0.9.4-3 and you importe[…]

How to enable and use ACL

I started to enable the ACL about 2 years ago (May[…]

If you use centos 7,everything should be the same.[…]

I have a feeling that MAMP is including php7. P[…]

I have it running on Ubuntu on GCP Email me if yo[…]