Bugzilla – Attachment 37976 Details for
Bug 10222
Error when saving Demco label templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10222 - Error when saving Demco label templates
Bug-10222---Error-when-saving-Demco-label-template.patch (text/plain), 2.01 KB, created by
Chris Nighswonger
on 2015-04-16 16:12:09 UTC
(
hide
)
Description:
Bug 10222 - Error when saving Demco label templates
Filename:
MIME Type:
Creator:
Chris Nighswonger
Created:
2015-04-16 16:12:09 UTC
Size:
2.01 KB
patch
obsolete
>From 2b9fa8d33fbfe70be208f67a7a828c4eaad73718 Mon Sep 17 00:00:00 2001 >From: Chris Nighswonger <chris.nighswonger@gmail.com> >Date: Thu, 16 Apr 2015 12:07:29 -0400 >Subject: [PATCH] Bug 10222 - Error when saving Demco label templates > >This patch fixes a bug whereby if you open either of the >Demco label templates (loaded by the sample data) and >click "save" without making any changes you will get an >error: > >Can't bless non-reference value at C4/Creators/Profile.pm >line 92. > >It also fixes another minor bug in the creator sample data. > >To test: > >1. Install all sample data in a clean database. >2. In the label tool, edit either of the Demco label templates. >3. Save the template and observe the error mentioned above. >4. Drop and recreate the database. >5. Apply the patch. >6. Repeate steps 1-3 and note the successful save. >--- > installer/data/mysql/en/optional/sample_creator_data.sql | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/en/optional/sample_creator_data.sql b/installer/data/mysql/en/optional/sample_creator_data.sql >index 91d7d00..6e9da04 100644 >--- a/installer/data/mysql/en/optional/sample_creator_data.sql >+++ b/installer/data/mysql/en/optional/sample_creator_data.sql >@@ -27,7 +27,7 @@ UNLOCK TABLES; > > LOCK TABLES `printers_profile` WRITE; > /*!40000 ALTER TABLE `printers_profile` DISABLE KEYS */; >-INSERT INTO `printers_profile` VALUES (1,'Library Laser',1,'Bypass',-2,9,3,0,'POINT','Labels'),(11,'Library Laser',1,'Tray 1',0,0,0,0,'POINT','Labels'),(16,'Test Printer 01',23,'Test Bin',0,0,0,0,'POINT','Patroncards'); >+INSERT INTO `printers_profile` VALUES (1,'Library Laser',1,'Bypass',-2,9,3,0,'POINT','Labels'),(13,'Library Laser',7,'Tray 1',0,0,0,0,'POINT','Labels'),(14,'Library Laser',12,'Tray 2',0,0,0,0,'POINT','Labels'),(16,'Test Printer 01',23,'Test Bin',0,0,0,0,'POINT','Patroncards'),(22,'Library Laser',0,'Tray 3',0,0,0,0,'POINT','Labels'); > /*!40000 ALTER TABLE `printers_profile` ENABLE KEYS */; > UNLOCK TABLES; > /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10222
:
37976
|
68410
|
68411
|
68801
|
68802
|
69133
|
69134