I have to work on a forum with
XONs conversation essentials
and another custom addon
both use
When i try to send a conversation without a title, i get an error here
(function validate doesnt exists <=> probably an error in the custom addon)
in XONs xf/p/c/conversation.php
I will try to find the problem now.
As fast and dirty solution i have added required="required" to the title_field for create a conversation.
And just here i ask myself, we dont have this "required" everywhere?
We we need to produce an error and show it sometimes without any information, when we could use required, avoaid any error and shot the place where a user should react?
XONs conversation essentials
and another custom addon
both use
Code:
class Conversation extends XFCP_Conversation {
protected function setupConversationCreate()
When i try to send a conversation without a title, i get an error here
(function validate doesnt exists <=> probably an error in the custom addon)
Code:
$creator = $this->setupConversationCreate();
if (!$creator->validate($errors))
{
return $this->error($errors);
}
in XONs xf/p/c/conversation.php
I will try to find the problem now.
As fast and dirty solution i have added required="required" to the title_field for create a conversation.
And just here i ask myself, we dont have this "required" everywhere?
We we need to produce an error and show it sometimes without any information, when we could use required, avoaid any error and shot the place where a user should react?
Upvote
0