[Suitecrm]升级suitecrm7.3之后Inline edit出现警示Missing argument 5 for formatDisplayValue()

2015年9月3日20:57:49 发表评论 2,634 views

Warning: Missing argument 5 for formatDisplayValue(), called in /home/swzycie/domains/.../public_html/include/InlineEditing/InlineEditing.php on line 332 and defined in /home/.../public_html/include/InlineEditing/InlineEditing.php on line 337

 

change ur code in 337 line to :

function formatDisplayValue($bean, $value, $vardef, $method = "save", $view= 'false')

or

function formatDisplayValue($bean, $value, $vardef, $method = "save", $view=null)

更好的办法:

function formatDisplayValue($bean, $value, $vardef, $method = "save", $view= "ListView")

之后就管用了,再也不用担心出现警示,原创文章,欢迎转载。其实不单单是suitecrm,其他类似的问题也是用同样的方法解决的,思路就是赋值!

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: