Jelajahi Sumber

- When sending email the "From" field is mandatory otherwise the mails are not sent.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@749 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 tahun lalu
induk
melakukan
2c0963bb20
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      core/action.class.inc.php

+ 1 - 1
core/action.class.inc.php

@@ -149,7 +149,7 @@ class ActionEmail extends ActionNotification
 
 		MetaModel::Init_AddAttribute(new AttributeEmailAddress("test_recipient", array("allowed_values"=>null, "sql"=>"test_recipient", "default_value"=>"", "is_null_allowed"=>true, "depends_on"=>array())));
 
-		MetaModel::Init_AddAttribute(new AttributeString("from", array("allowed_values"=>null, "sql"=>"from", "default_value"=>null, "is_null_allowed"=>true, "depends_on"=>array())));
+		MetaModel::Init_AddAttribute(new AttributeString("from", array("allowed_values"=>null, "sql"=>"from", "default_value"=>null, "is_null_allowed"=>false, "depends_on"=>array())));
 		MetaModel::Init_AddAttribute(new AttributeString("reply_to", array("allowed_values"=>null, "sql"=>"reply_to", "default_value"=>null, "is_null_allowed"=>true, "depends_on"=>array())));
 		MetaModel::Init_AddAttribute(new AttributeOQL("to", array("allowed_values"=>null, "sql"=>"to", "default_value"=>null, "is_null_allowed"=>true, "depends_on"=>array())));
 		MetaModel::Init_AddAttribute(new AttributeOQL("cc", array("allowed_values"=>null, "sql"=>"cc", "default_value"=>null, "is_null_allowed"=>true, "depends_on"=>array())));