View Issue Details

IDProjectCategoryView StatusLast Update
0014550mantisbtapi soappublic2013-04-06 08:16
ReporterSergiodf Assigned Torombert  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.11 
Target Version1.2.12Fixed in Version1.2.12 
Summary0014550: Incorrect values for date_order field when using mc_project_version_add()
Description

This issue may be the same as 0008566 or 0008767, in that case it is here with us again.

An SQL error occurs when trying to add a new version using the SOAP API (something similar to "value truncated").

In the attached diff patch is the fix for mc_project_version_add(), but mc_project_version_update() may need a similar treatment.

TagsNo tags attached.
Attached Files
14550.diff (420 bytes)   
--- mc_project_api.php	Mon Jan 19 19:26:36 1970
+++ mc_project_api.php	Mon Jan 19 19:26:36 1970
@@ -322,7 +322,7 @@
 	if ( is_blank( $t_date_order ) ) 
 	    $t_date_order = null;
 	else 
-	    $t_date_order = date( "Y-m-d H:i:s", strtotime( $t_date_order ) );
+	    $t_date_order = iso8601_to_timestamp($t_date_order);
 	
 	$t_obsolete = isset ( $p_version['obsolete'] ) ? $p_version['obsolete'] : false;
 	
14550.diff (420 bytes)   

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

rombert

rombert

2012-08-04 08:34

reporter   ~0032463

Fixed, thanks for the patch!

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036168

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 9051f846

2012-08-04 01:31

rombert


Details Diff
Fix 0014550: Incorrect values for date_order field when using
mc_project_version_add()
Affected Issues
0014550
mod - api/soap/mc_project_api.php Diff File
mod - tests/soap/VersionTest.php Diff File

MantisBT: master-1.2.x d1d49e4e

2012-08-04 01:31

rombert


Details Diff
Fix 0014550: Incorrect values for date_order field when using
mc_project_version_add()
Affected Issues
0014550
mod - api/soap/mc_project_api.php Diff File
mod - tests/soap/VersionTest.php Diff File

MantisBT: master-1.2.x 218c5129

2012-08-05 09:19

rombert


Details Diff
Fix 0014550: Incorrect values for date_order field when using
mc_project_version_add()

Fix double key in VersionTest ( thanks to atrol ).
Affected Issues
0014550
mod - tests/soap/VersionTest.php Diff File

MantisBT: master fd1269a0

2012-08-05 09:20

rombert


Details Diff
Fix 0014550: Incorrect values for date_order field when using
mc_project_version_add()

Fix double key in VersionTest ( thanks to atrol ).
Affected Issues
0014550
mod - tests/soap/VersionTest.php Diff File