Loading...
 
Skip to main content

Patch to staging & approval

Status
Closed
Subject
Patch to staging & approval
Version
6.x
Category
  • Patch
Feature
Staging and Approval
Resolution status
Fixed or Solved
Lastmod by
Arild Berg
Rating
(0)
Description

Staging & Approval fails if incorrect $edit_minor parameter type is supplied to the function update_page. This is the case in Tiki 6.3

This causes the whole staging & approval mechanism to fail.

Solution

Fix the type of the $edit_minor parameter supplied.
So, the result will be like...

function update_page($pageName, $edit_data, $edit_comment, $edit_user, $edit_ip, $edit_description = , $edit_minor = 0, $lang=, $is_html=null, $hash=null, $saveLastModif=null, $wysiwyg=, $wiki_authors_style=) {
global $smarty, $prefs, $dbTiki, $histlib, $quantifylib;
include_once ("lib/wiki/histlib.php");
include_once ("lib/comments/commentslib.php");

/**
AB: Fix missing minor_version during staging
**/

$edit_minor = intval($edit_minor);

/** End fix **/

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Created
Sunday 21 August, 2011 21:08:15 UTC
by Arild Berg
LastModif
Sunday 04 September, 2011 21:18:24 UTC


Show PHP error messages