Changeset 662
- Timestamp:
- May 31, 2014, 11:53:31 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r661 r662 1 1 <?php 2 2 3 $Revision = 66 1; // Subversion revision4 $DatabaseRevision = 66 1; // SQL structure revision3 $Revision = 662; // Subversion revision 4 $DatabaseRevision = 662; // SQL structure revision 5 5 $ReleaseTime = strtotime('2014-05-31'); -
trunk/Common/Setup/Updates.php
r661 r662 773 773 } 774 774 775 function UpdateTo662($Manager) 776 { 777 $Manager->Execute('INSERT INTO `Contact` (SELECT NULL AS `Id`, 2 AS `Category`, `ICQ` AS `Value`, NULL AS `Subject`, `Id` AS `User` FROM `User` 778 WHERE (`ICQ` != "") AND (`ICQ` != 0))'); 779 $Manager->Execute('ALTER TABLE `User` DROP `ICQ`;'); 780 $Manager->Execute('INSERT INTO `ActionIcon` (`Id`, `Name`) VALUES (NULL, "Contact.png");'); 781 $IconId = $Manager->Database->insert_id; 782 $Manager->Execute('UPDATE `Action` SET `Icon` = '.$IconId.' WHERE `Title`="Kontakty"'); 783 784 } 785 775 786 class Updates 776 787 { … … 814 825 647 => array('Revision' => 657, 'Function' => 'UpdateTo657'), 815 826 657 => array('Revision' => 661, 'Function' => 'UpdateTo661'), 827 661 => array('Revision' => 662, 'Function' => 'UpdateTo662'), 816 828 )); 817 829 } -
trunk/Modules/Subject/Subject.php
r661 r662 66 66 'Filter' => '1', 67 67 )); 68 $this->System->FormManager->RegisterFormType('TContactList ', array(68 $this->System->FormManager->RegisterFormType('TContactListCategory', array( 69 69 'Type' => 'ManyToOne', 70 70 'Table' => 'Contact', … … 73 73 'Filter' => '1', 74 74 )); 75 $this->System->FormManager->RegisterFormType('TContactListUser', array( 76 'Type' => 'ManyToOne', 77 'Table' => 'Contact', 78 'Id' => 'Id', 79 'Ref' => 'User', 80 'Filter' => '1', 81 )); 75 82 $this->System->FormManager->RegisterClass('Contact', array( 76 'Title' => 'Kontakt u',83 'Title' => 'Kontakty', 77 84 'Table' => 'Contact', 78 85 'Items' => array( … … 88 95 'Items' => array( 89 96 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 90 'Items' => array('Type' => 'TContactList ', 'Caption' => 'Kontakty'),97 'Items' => array('Type' => 'TContactListCategory', 'Caption' => 'Kontakty'), 91 98 ), 92 99 )); -
trunk/Modules/User/User.php
r650 r662 558 558 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 559 559 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''), 560 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),561 560 ), 562 561 )); … … 598 597 'RegistrationTime' => array('Type' => 'DateTime', 'Caption' => 'Čas registrace', 'Default' => ''), 599 598 'Locked' => array('Type' => 'Boolean', 'Caption' => 'Uzamčen', 'Default' => ''), 600 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),601 599 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefon', 'Default' => ''), 602 600 'UserRel' => array('Type' => 'TUserCustomerRelListUser', 'Caption' => 'Přístup k zákazníkům', 'Default' => ''), 603 601 'Permission' => array('Type' => 'TPermissionUserAssignmentListUser', 'Caption' => 'Oprávnění', 'Default' => ''), 602 'Contatcs' => array('Type' => 'TContactListUser', 'Caption' => 'Kontakty', 'Default' => ''), 604 603 ), 605 604 ));
Note:
See TracChangeset
for help on using the changeset viewer.