I am using PHPRad Classic 2.6.9.
One of my tables is "orderdetails" has two fields for the primary key (OrderID and ProductID), which has table schema as follows:
CREATE TABLE `orderdetails` (
`OrderID` int(11) NOT NULL DEFAULT '0',
`ProductID` int(11) NOT NULL DEFAULT '0',
`UnitPrice` double DEFAULT NULL,
`Quantity` smallint(6) DEFAULT NULL,
`Discount` double DEFAULT NULL,
PRIMARY KEY (`OrderID`,`ProductID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of orderdetails
-- ----------------------------
INSERT INTO `orderdetails` VALUES (10248, 41, 9.65, 13, 0);
INSERT INTO `orderdetails` VALUES (10248, 42, 9.8, 10, 0);
INSERT INTO `orderdetails` VALUES (10248, 72, 34.8, 12, 0.11);
INSERT INTO `orderdetails` VALUES (10249, 14, 18.6, 12, 0.25);
INSERT INTO `orderdetails` VALUES (10249, 51, 42.4, 40, 0);
INSERT INTO `orderdetails` VALUES (10250, 41, 7.7, 10, 0);
INSERT INTO `orderdetails` VALUES (10250, 51, 42.4, 35, 0.15);
INSERT INTO `orderdetails` VALUES (10250, 65, 16.8, 15, 0.15);
INSERT INTO `orderdetails` VALUES (10251, 22, 16.8, 6, 0.05);
INSERT INTO `orderdetails` VALUES (10251, 57, 15.6, 15, 0.05);
When I edit one of the records with primary key OrderID 10248 and ProductID 41 with the following URL:
http://localhost/rad_test/orderdetails/edit/10248/?csrf_token=a657dd233d546b205e8eea53a48cec3d
I got this error:
It seems PHPRad has not handled if the primary key fields are more than one field. Am I right?
Thoughts?