Skip to main content
Topic: [1.1.3] merge more then one topic (Read 716 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[1.1.3] merge more then one topic

I tried to merge four topics today. I got the following error. After clicking on "back" ("Zurück") I got a session timeout message, but I was still logged in.

Merging two topics makes no problems.

Re: [1.1.3] merge more then one topic

Reply #1
It says you can only do two topics at a time and you do more than that, so I will not consider this as a bug but more on feature upgrade. Basically you want to be able to merge more topics than the default.

Current solution will be to do it two topics on each merge, until you merge them all. I count that as three times.

Re: [1.1.3] merge more then one topic

Reply #3
On the top of the merge it says

"This function will merge the messages of two topics into one topic. The messages will be sorted according to the time of posting. Therefore the earliest posted message will be the first message of the merged topic. "

The bug is allowing you to select more than two.

Re: [1.1.3] merge more then one topic

Reply #4
*head scratch* .... I think It should allow you to merge more than one at a time.

So we may need to update that line of text so its actually correct :P

Although the bug is showing up in merge topics, I think its a bit more general of an issue, albeit very rare in the code.  ElkArte uses a centralized post and validation class to interact and validate form data.  I'd start with this edit to the HttpReq.class.php in sources and see how that goes.

Code: (find) [Select]
		// To the validator
$this->_dataValidator->sanitation_rules(array($name => $sanitize));

Code: (replace) [Select]
		// To the validator
$this->_dataValidator->sanitation_rules(array($name => $sanitize));

if (is_array($this->_param[$name]))
$this->_dataValidator->input_processing(array($name => 'array'));


That scripturl issue in the image looks to be your theme issue, I don't see that in the default theme (your probably missing a global $scripturl; in your theme function. 

Not being able to press back is "normal" as you submitted a form, going back is not going to work since your are effectively trying to submit again.  The message could be better, but the result would be the same, denied !

I'll track this for 1.1.5 ETA:
Squish squish. squish, squish, squish.
Find a bug,
Make a wish.