Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


Issue information

  • #000578

  • Issue

  • 0 - None Assigned

  • Fixed

  • 2.2.2

  • 2.3.0


Issue Confirmations

  • Yes (0)No (0)
Photo

accepting empty comments

Posted by media on 27 October 2011 - 10:14 AM

The comment system on video accepting empty comment

changed status to: Confirmed

Michael,
Would you mind giving us a fix for this???

Thanks


Untested, try this.

Open admin/applications_addon/other/videos/modules_public/post/comment.php

Find:
$video_comment = $editor->process( $_POST['comment'] );

Add ABOVE:
		if( !$_POST['comment'] )
		{
			$this->registry->output->showError( 'Please go back and add a comment.' );	
		}

Save.


Thank u. Fixed


changed status to: Fixed
changed fixed-in version to: 2.3.0

It would actually be this:

			if( $_POST['comment'] )
			{
					$this->registry->output->showError( 'Please go back and add a comment.' );   
			}

You have to remove the "!" from - if( !$_POST['comment'] ) since its trying to validate the comment string of:

$video_comment = $editor->process( $_POST['comment'] );


I'm not sure I understand, that code would show the error if there was a comment?


Im just saying when I put your code in it was not working it would be the same then i tried my method and it worked out for me. But that's only in theory. I don' know if it would work for others. Just use ur method






0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users