Author Topic: [SOLVED] where can i change Unique ID prefix?  (Read 2871 times)

poborn

  • Newbie
  • *
  • Posts: 7
    • View Profile
[SOLVED] where can i change Unique ID prefix?
« on: July 01, 2010, 09:18:56 pm »
Hi all,
does anyone know where I can change the task's predetermined 'Unique ID prefix from 'ta' to something else that matches our current record keeping?
eg. current task  is 'Unique id: ta238'
would like it to be: 'Unique id: SGT238' or similar
would be good if the reporting could include the id number too.

thanks
PO
« Last Edit: July 11, 2010, 10:40:43 pm by poborn »

fernandog

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: where can i change Unique ID prefix?
« Reply #1 on: July 08, 2010, 03:13:22 pm »
in application\models\project_tasks\base\BaseProjectTask.class.php

change      protected $objectTypeIdentifier = 'ta'; to      protected $objectTypeIdentifier = 'SGT';

That should do it. (I just tried it)

PS:
I also noticed its referenced here
public\upgrade\templates\db_migration\1_1_bondiola.php
in concat('ta', format(((id+50) / 100)
i'm not sure if you should change it there as well, probably for upgrading.

poborn

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: where can i change Unique ID prefix?
« Reply #2 on: July 11, 2010, 10:40:07 pm »
thanks fernandog.
That's done the trick.
cheers