Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#122 Warnings after "New Contact" & no lastname entered

Next Release
open
Tobias
3
2008-02-11
2008-02-08
katzlbt
No

TABR displays tons of PHP warnings when creating a new contact and not entering a lastname.

Discussion

  • katzlbt
    katzlbt
    2008-02-11

    Logged In: YES
    user_id=1527196
    Originator: YES

    The problem is that the new attach property to an address feature incorrectly assumes that $refid is set.

    I fixed 2 major sources of warnings by skipping an address if the refid is not set.

    PaggeContactEdit #679
    if(!isset($a['refid'])) // if someone leaves the lastname blank we reedit the same contact - would cause tons of warnings
    $a = null;

    This blanks out a just entered address, which might annoy a user.

    Still to fix:
    Notice: Undefined index: refid in /srv/www/tab3/lib/frontEnd/PageContactEdit.class.php on line 310

     
  • katzlbt
    katzlbt
    2008-02-11

    • assigned_to: nobody --> gzm0
    • summary: Warnings after "New Contact" & no lastname --> Warnings after "New Contact" & no lastname entered
     
  • katzlbt
    katzlbt
    2008-02-11

    Logged In: YES
    user_id=1527196
    Originator: YES

    I fixed all warnings, BUT ...
    TODO: the input to addresses should not be lost, so a better fix on #679 is needed.

     
  • katzlbt
    katzlbt
    2008-02-11

    • priority: 5 --> 3