Friday, November 21, 2008 ..:: Forums ::.. Register  Login
 Forums Minimize
SearchForum Home
     
  Plug-in and Platform Forums  Outlook 2003 Plug-in  Plug-In Duratio...
 Plug-In Duration Hours Error
 
AllStoneTech
27 posts
Joined
9/22/2006

Plug-In Duration Hours Error
Posted: 05 Feb 07 10:02 AM

This is just a heads up.  I did a quick and dirty fix to an error that occurs while sync'ing duration_hours without an hour set in Sugar (i'd set a call for 30 minutes, hours was empty, not zero).  The app errored because duration_hours was an empty string or null.  It was an easy fix in Appointment.cs.  

This didn't have to be done for minutes sense you can't delete minutes

case "duration_hours" : nDurationHours = Convert.ToInt32(string.IsNullOrEmpty(sValue) ? "0" : sValue); break;

support
2098 posts
1st
Joined
1/3/2006

Re: Plug-In Duration Hours Error
Posted: 05 Feb 07 10:40 AM

Thanks.  We have fixed the code in Vault to use Sql.ToInteger() instead of Convert.ToInt32().  Our ToInteger function is used throughout SplendidCRM and will return 0 if the input is null, empty or DBNull.Value.

 

  Plug-in and Platform Forums  Outlook 2003 Plug-in  Plug-In Duratio...

Forum Home  Search       

Copyright (c) 2006-2008 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by Perpetual Motion Interactive Systems Inc.
SplendidCRM and SplendidCRM Software are trademarks of SplendidCRM Software, Inc. SugarCRM is a trademark of SugarCRM Inc. in the United States, the European Union and other countries. All other trademarks used in this web site are the property of their respective owners.